import request from '@/utils/request'

export const login = (params) => {
  return request({
    method: 'post',
    url: '/api/user/login',
    data: params
  })
}

export const reg = (params) => {
  return request({
    method: 'post',
    url: '/api/user/reg',
    data: params
  })
}